package com.cqfan.cloud.office.ocr;

import com.benjaminwan.ocrlibrary.OcrResult;
import io.github.mymonstercat.Model;
import io.github.mymonstercat.ocr.InferenceEngine;

/**
 * @author JiaLing.Fan
 * @version 1.0
 * @date 2024-05-12 20:39
 * @description Test
 */
public class Test {

    public static void main(String[] args) {

        InferenceEngine engine = InferenceEngine.getInstance(Model.ONNX_PPOCR_V3);
        OcrResult ocrResult = engine.runOcr("c:/data/2.jpg");
        System.out.println(ocrResult.getStrRes().trim());
    }
}
